package com.gimi.cloud.jimi.manage.consumer.service.prod;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by lixj on 2017/12/19.
 */
public interface BrandService {

    /**
     * 获取商品品类列表
     * @return 菜单列表
     */
    public Response getBrandList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response);

    /**
     * 添加商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    public Response addBrand(String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 更新商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    public Response updateBrand(String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 删除商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    public Response deleteBrand(String requestBody, HttpServletRequest request, HttpServletResponse response);
    /**
     * 获取商品品类列表(分页)
     * @return 菜单列表
     */
    public Response getBrandPageList(String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑商品品牌界面
     * @return 菜单列表
     */
    public Response gotoEditProdBrand(String requestData, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 商品品牌文件上传
     * @return url
     */
    Response fileUpload(HttpServletResponse response, HttpServletRequest request) throws Exception;
}
